package com.xiaobaibai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaobaibai.entity.Product;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaobaibai
 * @since 2020-10-16
 */
public interface IProductService extends IService<Product> {

    public List<Integer> searchByEs(String productName);

    public List<String> associatedWords(String search);

    public boolean haveProductByCategoryId(Integer categoryId);

    public List<Product> getProductByList(Collection collection);

    public void returnStock(String orderId);

}
